package com.tz.farmer.so;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AuthenticationInfoSo implements Serializable {

    /**
     *   `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
     *   `auth_type` varchar(255) DEFAULT NULL COMMENT '认证类别',
     *   `number` varchar(255) DEFAULT NULL COMMENT '编号证书',
     *   `product_name` varchar(255) DEFAULT NULL COMMENT '产品名称',
     *   `yield` varchar(255) DEFAULT NULL COMMENT '批准产量',
     *   `create_time` datetime DEFAULT NULL COMMENT '添加时间',
     *   `term_time` datetime DEFAULT NULL COMMENT '有效期',
     */
    @ApiModelProperty(value = "id")
    private Integer id;
    @TableId(value = "主题信息id")
    private Integer leadId;
    @ApiModelProperty(value = "认证类别")
    private String authType;
    @ApiModelProperty(value = "编号证书")
    private String number;
    @ApiModelProperty(value = "产品名称")
    private String productName;
    @ApiModelProperty(value = "批准产量")
    private String yield;
    @ApiModelProperty(value = "添加时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8" )
    private LocalDateTime createTime;
    @ApiModelProperty(value = "有效期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8" )
    private Date termTime;

    private Integer currentPage;
    private Integer pageSize;

}
